package Q;

import java.util.Scanner;

public class EX01_AccountService implements EX01_IAccountService{
	
	private static EX01_IAccountDAO as = null;
	
	public EX01_AccountService(){
		
		as = new EX01_AccountDAO();
		
	}
	
	Scanner sc = new Scanner(System.in);
	EX01_AccountVO avo = new EX01_AccountVO();
	
	
	
	@Override
	public void createAccount() {
		System.out.println("계좌번호를 입력하세요");
		avo.setAid(sc.next());
		System.out.println("잔액을 입력하세요");
		avo.setBalance(sc.nextInt());
		System.out.println("연간 이자율을 입력하세요");
		avo.setInterestRate(sc.nextFloat());
		
		if(as.insertAccount(avo))
			System.out.println("계좌생성 성공");
		else System.out.println("계좌생성 실패");
		
	}

	@Override
	public void selectAccount() {
		
		
		
	}

	@Override
	public void updateAccount() {
		
		
		
	}

	@Override
	public void deleteAccount() {
		
		
		
	}

	@Override
	public void getMonthlyInterestRate() {
		
		
		
	}

	@Override
	public void withdraw() {
		
		
		
	}

	@Override
	public void deposit() {
		
		
		
	}

}
